Facepile Lives

Rough, but any new ‘like’ webmention to my site will be given a ‘like’ custom comment type and displayed in a facepile. Still need to convert the existing ones.

See both previous (for now) and new likes on this post about Fr. Bill.

Comments

5 responses

  1. Ryan Barrett

    facepiles! awesome! oh man, jealous. next up, reposts, and emoji reactions like Facebook’s?

    can’t wait to see this kind of thing merged into Semantic Linkbacks (i assume?) and released! cc GWG.

    1. Brandon Kraft

      Yeah! Exactly. Going to look at building alongside the core Feature Plugin for emoji reactions so a webmention reaction adds to the count.

      Right now, I’m just playing to see how it feels and absolutely offer anything I get working upstream.

  2. Brandon Kraft

    Alright, I’ve converted over all existing webmention likes/reposts and added a facepile for reposts too. Two problems still outstanding: 1. Non-square avatars break the design and 2. How to handle 404ing avatars.

    1. Brandon Kraft

      Photon to the rescue for non-square avatars. Picking up on where semantic links left off:

      add_filter( 'pre_get_avatar_data', 'bk_photonize_comment_avatars', 12 );
      function bk_photonize_comment_avatars( $args ) {
      	if ( isset( $args['url'] ) && ! is_null( $args['url'] ) && function_exists( 'jetpack_photon_url') ) {
      		$size = apply_filters( 'genesis_comment_list_args', array( 'avatar_size' => 30 ) );
      		$size = $size['avatar_size'];
      		$args['url'] = jetpack_photon_url( $args['url'], array( 'resize' => array( $size, $size ) ) ) ;
      	}
      	return $args;
      }

  3. Srikanth Perinkulam

    Reminds me to clean up my facepiles too!
    Liked: Facepile Lives

    Rough, but any new ‘like’ webmention to my site will be given a ‘like’ custom comment type and displayed in a facepile. Still need to convert the existing ones. See both previous (for now) and new likes on this post about Fr.

    Srikanth Perinkulam

Mentions

Likes

Leave a Reply

Your email address will not be published. Required fields are marked *

To respond on your own website, enter the URL of your response which should contain a link to this post’s permalink URL. Your response will then appear (possibly after moderation) on this page. Want to update or remove your response? Update or delete your post and re-enter your post’s URL again. (Find out more about Webmentions.)